<?php
ini_set('display_errors',1);
set_time_limit(0);
include_once  dirname(__FILE__) . '/soap_import.php';
ini_set("soap.wsdl_cache_enabled", "0");
class ExecCmdClass
{
	const WSDL = 'http://www.cms.com/cds_3_0_X/nn_cds/v2/ns_api/jscn/message/youku/service.php?wsdl';
	public function ExecCmd($CSPID, $LSPID, $CorrelateID, $CmdFileURL)
	{
		$arg_list = func_get_args();
		$client = self::get_soap_client();
		return $client->ExecCmd($CSPID, $LSPID, $CorrelateID, $CmdFileURL);
	}
	public function get_soap_client()
	{
		return new SOAPClient(self::WSDL,array('trace' => true));
	}
}
$CorrelateID = np_guid_rand();
$CSPID = 'starcor';
$LSPID = 'youku';
//主媒资
$CmdFileURL='http://202.107.186.204:57879/nn_cms/data/assets_sync_queue/f3219b3a5a966987157dbf66239a337a.xml';
//分集片源
// $CmdFileURL='ftp://xjdx_bk:xjdx_bk@202.107.186.204:21/starcor/xml/cbc/1842079_VOD_REGIST_20160302104201873.xml';
// $CmdFileURL='ftp://xjdx_bk:xjdx_bk@202.107.186.204:21/starcor/xml/cbc/1842544_VOD_REGIST_20160302165325639.xml';
// var_dump($CSPID, $LSPID, $CorrelateID, $CmdFileURL);die;

$ExecCmdClass = new ExecCmdClass();

$result = $ExecCmdClass->ExecCmd($CSPID, $LSPID, $CorrelateID, $CmdFileURL);
//$result=call_user_func_array(array('ExecCmdClass', 'ExecCmd'), array($CSPID, $LSPID, $CorrelateID, $CmdFileURL));
var_dump($result);


